﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000EB RID: 235
	public class TAlterStageStmt : TCustomSqlStatement
	{
		// Token: 0x060007FA RID: 2042 RVA: 0x0030162D File Offset: 0x002FF82D
		public void setStageName(TObjectName stageName)
		{
			this.stageName = stageName;
		}

		// Token: 0x060007FB RID: 2043 RVA: 0x00301636 File Offset: 0x002FF836
		public TObjectName getStageName()
		{
			return this.stageName;
		}

		// Token: 0x060007FC RID: 2044 RVA: 0x0030163E File Offset: 0x002FF83E
		public TAlterStageStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstAlterStage;
		}

		// Token: 0x060007FD RID: 2045 RVA: 0x00301654 File Offset: 0x002FF854
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.stageName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x060007FE RID: 2046 RVA: 0x00301691 File Offset: 0x002FF891
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060007FF RID: 2047 RVA: 0x003016A1 File Offset: 0x002FF8A1
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011F9 RID: 4601
		private TObjectName stageName;
	}
}
